import { useEffect } from "react";
import { message } from "antd";
import { addUserSignInUsingPost } from "@/api/userController";


/**
 * 题目详情刷题
 * @param props
 * @constructor
 */
const useAddUserSignInRecord = () => {

  // 请求后端获取数据
  const doFetch = async () => {
    try {
      await addUserSignInUsingPost();
    } catch (e) {
      message.error("获取刷题签到记录失败，" + e.message);
    }
  };
  useEffect(() => {
    doFetch();
  }, []);

};

export default useAddUserSignInRecord;
